﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using wms_wpf.Apiservice;
using wms_wpf.InPut;

namespace wms_wpf.DialogView
{
    /// <summary>
    /// Dialog6.xaml 的交互逻辑
    /// </summary>
    public partial class Dialog6 : UserControl
    {
        public Dialog6(string Name)
        {
            InitializeComponent();
            service=new UserService();
            this.Name = Name;
        }

        private readonly MyUserService service;
        public string Name;

        private async void UpdatePassWord_Click(object sender, RoutedEventArgs e)
        {
            InPut_UserService3 InPut = new InPut_UserService3();
            InPut.NewPassWord = NewPassWord.Password;
            InPut.PassWord = PassWord.Password;
            InPut.UserName = Name;
            await service.UpdatePassWord(InPut);
        }
    }
}
